package com.sunxd.zstudy.java8.lambda;

import java.util.function.Predicate;

/**
 * @author sun.xd
 * @description: description
 * @date 2023/11/14 16:19
 */
public class T04 {

    public static void main(String[] args) {
        MyProcess myProcess = new MyProcess();

        MyInterface myInterface = new MyInterface() {
            @Override
            public String getObj(String s) {
                return s + "实现";
            }
        };
        String process1 = myProcess.process(myInterface, "匿名内部类");
        System.out.println(process1);


        String process2 = myProcess.process(t -> t + "实现","lambda");
        System.out.println(process2);



    }
}
